import request from '@/utils/request'

// 查询保养管理列表
export function listMaintain(query) {
  return request({
    url: '/bysj/maintain/list',
    method: 'get',
    params: query
  })
}

// 查询保养管理详细
export function getMaintain(maintainId) {
  return request({
    url: '/bysj/maintain/' + maintainId,
    method: 'get'
  })
}

// 新增保养管理
export function addMaintain(data) {
  return request({
    url: '/bysj/maintain',
    method: 'post',
    data: data
  })
}

// 修改保养管理
export function updateMaintain(data) {
  return request({
    url: '/bysj/maintain',
    method: 'put',
    data: data
  })
}

// 删除保养管理
export function delMaintain(maintainId) {
  return request({
    url: '/bysj/maintain/' + maintainId,
    method: 'delete'
  })
}

// 导出保养管理
export function exportMaintain(query) {
  return request({
    url: '/bysj/maintain/export',
    method: 'get',
    params: query
  })
}